import { PanelItemController } from "@ibiz-template/runtime";
import type { IPanelContainer } from "@ibiz/model-core";
import { PanelContainerState } from "./i-biz-panel-container.state";

/**
 * 面板容器控制器
 *
 * @export
 * @class PanelContainerController
 * @extends {PanelItemController<IPanelContainer>}
 */
export class PanelContainerController extends PanelItemController<IPanelContainer> {
  declare state: PanelContainerState;

  protected createState(): PanelContainerState {
    return new PanelContainerState(this.parent?.state);
  }
}
